package com.isoft.airportsystem.service.impl;


import com.isoft.airportsystem.entity.AFID.DFLT_AFID;
import com.isoft.airportsystem.entity.META;
import com.isoft.airportsystem.mapper.AFIDMapper;
import com.isoft.airportsystem.mapper.MetaMapper;
import com.isoft.airportsystem.service.AFIDService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.UUID;

@Service
public class AFIDServiceImpl implements AFIDService {
    @Resource
    private AFIDMapper afidMapper;
    @Resource
    private MetaMapper metaMapper;
    @Override
    public Integer add(DFLT_AFID afid, META meta) {
        String metaid = UUID.randomUUID().toString().replace("-", "").toLowerCase();
        afidMapper.add(afid, metaid);
        metaMapper.add(meta,metaid);
        return null;
    }
}
